﻿#ifndef TOTAL_H
#define TOTAL_H

#include <QWidget>
#include "QSqlDatabase"
#include "account_db.h"

namespace Ui {
class Total;
}

class Total : public QWidget
{
    Q_OBJECT

public:
    explicit Total(QWidget *parent = nullptr,account_db *input_account_db = nullptr);
    ~Total();
    account_db *account_data_db;
public slots:
    void show_groups(QStringList str_list);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void Timer_Handle();
    void Show_Data(QString db_name,QString group_name);
    void on_comboBox_currentIndexChanged(const QString &arg1);

private:
     //建立数据库
    QString total_db_name;
    Ui::Total *ui;
    //获取当地时间
    QString now_time;
    QTime *m_time;
    QStringList combo_items;
signals:
    void Delate_Win(QString win);
    void Text_Message(QString text);
};

#endif // TOTAL_H
